import request from '@/utils/request'

//条件查询带分页
export function getUserList(page,limit,searchObj) {
  return request({
    url: `/admin/user/${page}/${limit}`,
    method: 'post',
    params: searchObj
  })
}
//用户锁定
export function lockUser(userId,status) {
  return request({
    url: `/admin/user/lock/${userId}/${status}`,
    method: 'get'
  })
}
//用户详情
export function showUser(userId) {
  return request({
    url: `/admin/user/show/${userId}`,
    method: 'get'
  })
}

//认证审批
export function approval(userId,authStatus) {
  return request({
    url: `/admin/user/approval/${userId}/${authStatus}`,
    method: 'get'
  })
}